home *** CD-ROM | disk | FTP | other *** search
- #include <time.h>
-
- #include "DeskLib:Event.h"
-
- #include "Shell.Shell.h"
-
-
- /* these are used in the macro Shell_PollSlow(), defined in 'Shell.Shell.h' */
- clock_t Shell_nextpolltime = 0;
- clock_t Shell_pollinterval = 0;
-
- BOOL Shell_paused = FALSE;
-
-
- void Shell_Poll( void)
- {
- /* This polls the wimp until a null event is received */
- event_pollmask oldmask = event_mask;
-
- do {
- event_mask.data.null = 0; /* make sure null events are returned */
- Event_Poll();
- }
- while ( event_lastevent.type != event_NULL || Shell_paused);
-
- event_mask = oldmask; /* Restore old mask. */
-
- }
-